// 用户相关接口
import { http } from "./request";
export const login = (p: any) => http.post("user.User/login", p);
export const getInfo = (p?: any) => http.post("user/me", p);
export const setInfoApi = (p: any) => http.post("user/edit", p);
export const gradeListApi = () => http.get("grade/buyable", {});
export const buyGrdeApi = (p: any) => http.post("grade/buy", p);
// 提现相关
export const withdrawSetApi = () => http.get("balance.Withdraw/setting");
export const withdrawApi = (p: any) => http.post("balance.Withdraw/apply", p);
// 提现记录
export const withdrawLogApi = (p: any) => http.get("balance.Withdraw/logs", p);

export const addressListApi = () => http.get("user.Address/lists", {});

export const getQrCode = () => http.get("user.Qrcode/wx_qrcode", {});

export const addAddressApi = (p: any) => http.post("user.Address/add", p);

export const editAddressApi = (p: any) => http.post("user.Address/edit", p);

export const delAddressApi = (p: any) => http.post("user.Address/delete", p);
export const agentTeamApi = (p: any) => http.get("user.User/agentTeam", p);

export const getSignApi = () => http.get("plus.sign.Sign/index", {});

export const signApi = (p: any) => http.post("plus.sign.Sign/add", p);
export const getSignPointsApi = (p: any) =>
  http.get("plus.sign.Sign/getSignPoint", p);

export const getSignListApi = (p: any) => http.get("plus.sign.Sign/logs", p);

// 充值相关
export const rechargeApi = (p:any) => http.post("balance.Plan/submit",p);
export const payRechargeApi = (p:any) => http.post("balance.Plan/pay",p);

export const monthPointsApi = ()=>http.get("user.User/monthPoints")
